<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/1/10
 * Time: 11:44
 * name:更新记账记录
 * url:/erpEnterpriseStructure/update_bookkeeping_record
 */

//获取参数
$obr_id = $route->bodyParams["obr_id"];//主键ID

//更新条件
$whereArr = [
    "obr_id" => $obr_id
];

$updateArr = deleteArrData($whereArr,$route->bodyParams);

//执行写入语句
$rsData = $db->mysqlDB->update("oa_bookkeeping_record",$whereArr,$updateArr);

//返回成功结果
$response->responseData( true, $rsData );